package com.ruizhong.centercontroll.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_audio")
@XmlRootElement(name = "book")
public class TAudio {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer pageId;
    private String commandName;
    private String commandAudio;

    @TableField(exist = false)
    private List<Map<String,Object>> audioCommandList;

    @TableField(exist = false)
    private String type = "AUDIO";

    @XmlElement
    public String getCommandName() {
        return commandName;
    }

    @XmlElement
    public String getCommandAudio() {
        return commandAudio;
    }

}
